package demo.linkedlist;

/**
 * Version: 1.1
 * Author: TangJun
 * Date: 2024-07-22
 */
public class Node {
    public Object data;
    public Node next;
    public Node prev;

    public Node() {
        this.data = null;
        this.next = null;
        this.prev = null;
    }
    public Node(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Node{" +
                "data=" + data +
                '}';
    }
}
